<template>
    <div id="hsearch">
        <van-search v-model="value" show-action placeholder="请输入搜索关键词" @search="onSearch">
            <template #action>
                <div @click="onClickButton">搜索</div>
            </template>
        </van-search>
    </div>
</template>

<script setup>
import { ref } from 'vue';

const onClickLeft = () => history.back();
const value = ref('');
const onSearch = (val) => showToast(val);
const onClickButton = () => showToast(value.value);


</script>

<style scoped>
#hsearch {
    width: 100vw;
    height: 100vh;
    background-color: pink;
}
</style>